package org.jfk.sys.role;

import java.math.BigDecimal;

import org.apache.log4j.Logger;
import org.jfk.core.model.BaseModel;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Table;
import com.jfinal.plugin.activerecord.TableMapping;

/**
 * 
 * @author jxf
 */

@SuppressWarnings("serial")
public class RoleUrl extends  BaseModel<RoleUrl> {
	private static Logger logger = Logger.getLogger(RoleUrl.class);	
	public static final RoleUrl dao;
	public static final Table table;
	public static final String tableName;
	static {
		dao = new RoleUrl();
		table = TableMapping.me().getTable(RoleUrl.class);
		tableName = table.getName();
	}

	
	public static void deleteByRoleId(Integer roleId){
		Db.update("delete from "+tableName+" where roleId = ?", roleId);
	}
}
